package com.adong.service;


import com.adong.pojo.Book;
import com.adong.pojo.Page;

import java.sql.Connection;
import java.util.List;

/**
 * @author adong
 */
public interface BookService {

    int addBook( Book book);

    int deleteBookById(Integer id);

    int updateBook(Book book);

    Book queryBookById( Integer bookId);

    List<Book> queryBooks();

    Page<Book> page(int pageNo, int pageSize);

    Page<Book> pageByPrice(int pageNo, int pageSize, int min, int max);
}
